package SoftwarePrinciple.OpenClosePrinciple;

/**
 * @author: Themberfue
 * @date: 2025/8/7 11:25
 * @description:
 */
// 矩形实现类
public class Rectangle extends Shape {
    private double width;
    private double height;

    public Rectangle(double width, double height) {
        this.width = width;
        this.height = height;
    }

    @Override
    public double calculateArea() {
        return width * height;
    }
}

